<#import "component://widget/templates/htmlFormMacroLibrary.ftl" as render/>
<div id="content-area">
    <div class="group-area">
        <div class="group-title"><i class="fa fa-list"></i></div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantRestaurantName}</div>
            <div class="item-content">
            <form name="restaurant" method="post" action="<@ofbizUrl>setRestaurant</@ofbizUrl>">
                <input type="hidden" name="webSiteId" value="${webSiteId?if_exists}"/>
                <input type="text" name="restaurantName" value="${restaurantName?if_exists}" class="required"/>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantOpenTime}</div>
            <div class="item-content">
                <@render.renderDateTimeField name="openTime_c_date" className="" alert="false" value=openTime title="Format: yyyy-MM-dd" size="10" maxlength="10" step="10" timeValues="[0, 10, 20, 30, 40, 50]" id="restaurant_openTime" event="" action="null" dateType="time" shortDateInput=true timeDropdownParamName="" defaultDateTimeString=openTime localizedIconTitle="View Calendar" timeDropdown="time-dropdown" timeHourName="openTime_c_hour" classString="" hour1=0 hour2=openTimeHour timeMinutesName="openTime_c_minutes" minutes=openTimeMinute isTwelveHour=false ampmName="" amSelected="" pmSelected="" compositeType="openTime_c_compositeType" formName="restaurant" mask=""/>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantCloseTime}</div>
            <div class="item-content">
                <@render.renderDateTimeField name="closeTime_c_date" className="" alert="false" value=closeTime title="Format: yyyy-MM-dd" size="10" maxlength="10" step="10" timeValues="[0, 10, 20, 30, 40, 50]" id="restaurant_closeTime" event="" action="null" dateType="time" shortDateInput=true timeDropdownParamName="" defaultDateTimeString=closeTime localizedIconTitle="View Calendar" timeDropdown="time-dropdown" timeHourName="closeTime_c_hour" classString="" hour1=0 hour2=closeTimeHour timeMinutesName="closeTime_c_minutes" minutes=closeTimeMinute isTwelveHour=false ampmName="" amSelected="" pmSelected="" compositeType="closeTime_c_compositeType" formName="restaurant" mask=""/>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantTaxId}</div>
            <div class="item-content">
                <input type="text" name="taxId" value="${taxId?if_exists}"/>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantVAT}</div>
            <div class="item-content">
                <input type="text" name="vat" value="${vat?if_exists}" size="2"/> %
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">  </div>
            <div class="item-content">
                <input type="submit" value="${uiLabelMap.RestaurantSave}"/>
            </form>
            </div>
        </div>
    </div>
    <div class="group-area">
        <form name="printer" method="post" action="<@ofbizUrl>setPrinter</@ofbizUrl>">
        <div class="group-title"><i class="fa fa-print"></i></div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantPrinterForCashier}</div>
            <div class="item-content">
                <input type="hidden" name="webSiteId" value="${webSiteId?if_exists}"/>
                <input type="hidden" name="printerAttribute" value="CASHIER_PRINTER"/>
                <select name="printerName">
                        <option value=""></option>
                    <#list printerList as printer>
                        <option value="${printer}"<#if cashierPrinter?default("") == printer> selected</#if>>${printer}</option>
                    </#list>
                </select>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title">${uiLabelMap.RestaurantPrinterForKitchen}</div>
            <div class="item-content">
                <input type="hidden" name="printerAttribute" value="KITCHEN_PRINTER"/>
                <select name="printerName">
                    <option value=""></option>
                    <#list printerList as printer>
                        <option value="${printer}"<#if kitchenPrinter?default("") == printer> selected</#if>>${printer}</option>
                    </#list>
                </select>
            </div>
        </div>
        <div class="item-area">
            <div class="item-title"></div>
            <div class="item-content">
                <input type="submit" value="${uiLabelMap.RestaurantSave}"/>
            
            </div>
        </div>
        </form>
    </div>
</div>